package com.jie.utils;

import java.util.UUID;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class RoomIDUtils {

    public static String generateUniqueRoomID() {
        UUID uuid = UUID.randomUUID();
        String uuidString = uuid.toString().replaceAll("-", "");
        // 截取 8 位
        String subUuid = uuidString.substring(0, 8);
        return subUuid.toUpperCase();
    }
}